package service.exception;

public class LoanAppException extends Exception {

    /**
     * 
     */
    private static final long serialVersionUID = 7732196678311535018L;

    public enum CODE {
        UNKNOWN,
        INVALIDE_PARAMETER,
        INVALIDE_STATUS,
        INVALID_AMOUNT
    }

    public CODE mCode;

    public LoanAppException(CODE code) {
        super(code.toString());
        this.mCode = code;
    }

    public LoanAppException(CODE code, Exception e) {
        super(e);
        this.mCode = code;
    }

    public CODE getmCode() {
        return mCode;
    }

    public void setmCode(CODE mCode) {
        this.mCode = mCode;
    }

}
